<include file="public@header" />
</head>
<body>
	<div class="wrap">
		<ul class="nav nav-tabs">
			<li><a href="{:url('goods_category/index')}">类目列表</a></li>
			<li class="active"><a>类目编辑</a></li>
		</ul>
		<form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('goods_category/edit')}">
			<div class="form-group">
				<label class="col-sm-2 control-label"><span class="form-required">*</span>名称</label>
				<div class="col-md-6 col-sm-10">
					<input type="text" class="form-control" name="title" value="{$vo.title}">
				</div>
			</div>
			<div class="form-group">
                <label class="col-sm-2 control-label"><span class="form-required">*</span>图标</label>
                <div class="col-md-6 col-sm-10">
                    <input type="hidden" name="imgae" class="form-control" value="{$vo.imgae}" id="logo">
                    <div>
                    	<if $vo.image>
	                        <a href="javascript:uploadOneImage('上传图片','#logo');">
	                            <img src="{$vo.image|cmf_get_image_url}" id="logo-preview" width="135" style="cursor: pointer">
	                        </a>
                        <else/>
	                        <a href="javascript:uploadOneImage('上传图片','#logo');">
	                            <img src="/themes/admin_default/public/assets/images/default-thumbnail.png" id="logo-preview" width="135" style="cursor: pointer">
	                        </a>
	                    </if>
                    </div>
                </div>
            </div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<input type="hidden" name="id" value="{$vo.id}">
					<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
				</div>
			</div>
		</form>
	</div>
	<script src="__STATIC__/js/admin.js"></script>
</body>
</html>